<link rel="stylesheet" href="/static/js/plugins/bootstrap-treeview/bootstrap-treeview.min.css">
<script src="/static/js/plugins/bootstrap-treeview/bootstrap-treeview.min.js"></script>

<aside class="main-sidebar ">
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="/static/js/adminlte/img/user2-160x160.jpg" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>${EMPLOYEE_IN_SESSION.username}</p>
                <a href="#"><i class="fa fa-circle text-success"></i>在线</a>
            </div>
        </div>
        <!-- search form -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>
        <ul class="sidebar-menu" data-widget="tree">
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-laptop"></i>
                    <span>菜单系统</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu">
                    <li name="systemMenu"><a href="/systemMenu/list"><i
                                    class="fa fa-circle-o"></i>菜单系统管理</a>
                    </li>
                </ul>
                <ul class="treeview-menu">
                    <li name="systemMenuTest"><a href="/systemMenu/list"><i
                                    class="fa fa-circle-o"></i>动态菜单系统管理</a>
                    </li>
                </ul>
            </li>
            <div id="treeview-searchable" class="margin-left:30px;"></div>
        </ul>
    </section>
</aside>

<script>
    $(function () {
        //菜单初始
        // $('.sidebar-menu').tree();
        //菜单激活
        var cuLi = $(".treeview-menu li[name='${currentMenu}']");
        cuLi.addClass("active");
        cuLi.closest(".treeview").addClass("active")
    })
</script>